<%@ page language="java" pageEncoding="UTF-8"%>

<%   
     String path = request.getContextPath();
	String serverName = request.getServerName();
	if(path!=null&&path.equals("/")){
	   path="";
	} 
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    response.sendRedirect(basePath + "main.do");
%>